<html xmlns="http://www.w3.org/1999/xhtml"   
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:c="http://java.sun.com/jsp/jstl/core"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:fc="http://www.fusioncharts.com"
      >
     <h:head>
    	<h:outputStylesheet library="css" name="table-style.css"  />
    	
    	<!-- <script type="text/javascript" src="FusionCharts/FusionCharts.js" ></script> --> 
    	
    </h:head>
 <h:body>
 <!--<ui:define name="content">
<script type="text/javascript">

</script>
<f:verbatim>This is JSF example</f:verbatim> <br/>

<fc:render chartId="SimpleChart" filename="FusionCharts/Column3D.swf" width="700" height="300" url="Data/Data.xml"/>

</ui:define>
!-->
  <h:outputText value="#{firmDao.contextPath}" /><br />
  <h:outputText value="#{firmDao.firmIdCrd(1,10).legName}" /><br />
  <h:outputText value="#{firmDao.firmIdCrd(1,10).address}" />  <br />		
  <h:outputText value="#{firmDao.firmIdCrd(1,10).adress2}" /><br />
  <h:outputText value="Phone : #{firmDao.firmIdCrd(1,10).phone} Fax: #{firmDao.firmIdCrd(1,10).fax}  Website:#{firmDao.firmIdCrd(1,10).website}" /><br />  
  <h:outputText value="CRD #  #{firmDao.firmIdCrd(1,10).id.crd} SEC #  #{firmDao.firmIdCrd(1,10).sec}" /><br />
  <h:outputText value="#{firmDao.firmIdCrd(1,10).legName} is a #{firmDao.firmIdCrd(1,10).organization} with #{firmDao.firmIdCrd(1,10).clients} clients,#{firmDao.firmIdCrd(1,10).employees} employees and $ #{firmDao.getSumAssUndMgm(1,10)} assets under management.Their business activities include" /><br />
  <ui:repeat var="service" value="#{firmDao.getServices(1,10)}" >
  #{service.serviceName}, 
  </ui:repeat>
   <ui:repeat var="activity" value="#{firmDao.getActivities(1,10)}" >
  #{activity.activName}, 
  </ui:repeat>
  <h1>Types of Clients in Percentage</h1>
  
 #{firmDao.getClients(1,10)}
 
 <h1>Number of Employees</h1>
 #{firmDao.getEmployees(1,10)}
 
 <h1>Assets Under Management</h1>
 #{firmDao.getAssUnderMgmt(1,10)}
  <h1>Number of Accounts</h1>
  
 #{firmDao.getNbrAccounts(1,10)}
 <h1>Advisory Activities</h1>
 <ui:repeat var="service" value="#{firmDao.getServices(1,10)}" >
  #{service.serviceName} <br />
  </ui:repeat>
  
 <h1>Other Business Activities</h1>
  <ui:repeat var="activity" value="#{firmDao.getActivities(1,10)}" >
  - #{activity.activName} <br />	
  </ui:repeat>
  
 <h1>Compensation</h1>
  #{firmDao.firmIdCrd(1,10).compensation}
    
 <h1>Wrap Fee Program</h1>
 <ui:repeat var="wrap" value="#{firmDao.getWraps(1,10)}" >
  - #{wrap.wrap} <br />	
  </ui:repeat>
 
 <h1>Direct Owners</h1>
 
  <h:dataTable value="#{firmDao.getOwners(1,10,0)}" var="firmHasOwner"	>
 <h:column>
 <f:facet name="header">Name</f:facet>
 #{firmHasOwner.owner.name}
 </h:column>
 <h:column>
 <f:facet name="header">Type</f:facet>
 #{firmHasOwner.type}
 </h:column>
 <h:column>
 <f:facet name="header">Ownership</f:facet>
 #{firmHasOwner.ownership}
 </h:column>
 <h:column>
 <f:facet name="header">Title</f:facet>
 #{firmHasOwner.ownerTitle}
 </h:column>
 <h:column>
 <f:facet name="header">Acquired</f:facet>
 #{firmHasOwner.acquired}
 </h:column>
 <h:column>
 <f:facet name="header">CRD</f:facet>
 #{firmHasOwner.owner.cr}
 </h:column>
 <h:column>
 <f:facet name="header">Control</f:facet>
 
  <h:outputText value="Yes" rendered="#{firmHasOwner.control eq 1}"/>
  <h:outputText value="No" rendered="#{firmHasOwner.control eq 0}"/>
  
  </h:column>
 <h:column>
 <f:facet name="header">PR</f:facet>
  <h:outputText value="Yes" rendered="#{firmHasOwner.pr eq 1}"/>
  <h:outputText value="No" rendered="#{firmHasOwner.pr eq 0}"/>
  </h:column>
 <h:column>
 <f:facet name="header">Email</f:facet>
 #{firmHasOwner.owner.email}
 </h:column>
 
 </h:dataTable>
 <h1>Indirect Owners</h1>
  <h:dataTable value="#{firmDao.getOwners(1,10,1)}" var="firmHasOwner"	>
  <h:column>
 <f:facet name="header">Indirect Owners</f:facet>
 #{firmHasOwner.directOwner}
 </h:column>		
  <h:column>
 <f:facet name="header">Name</f:facet>
 #{firmHasOwner.owner.name}
 </h:column>		
 <h:column>
 <f:facet name="header">Type</f:facet>
 #{firmHasOwner.type}
 </h:column>
 <h:column>
 <f:facet name="header">Ownership</f:facet>
 #{firmHasOwner.ownership}
 </h:column>
 <h:column>
 <f:facet name="header">Title</f:facet>
 #{firmHasOwner.ownerTitle}
 </h:column>
 <h:column>
 <f:facet name="header">Acquired</f:facet>
 #{firmHasOwner.acquired}
 </h:column>
 
 <h:column>
 <f:facet name="header">Crd</f:facet>
 #{firmHasOwner.owner.cr}
 </h:column>
 
 <h:column>
 <f:facet name="header">Control</f:facet>
 
  <h:outputText value="Yes" rendered="#{firmHasOwner.control eq 1}"/>
  <h:outputText value="No" rendered="#{firmHasOwner.control eq 0}"/>
  
  </h:column>
  <h:column>
 <f:facet name="header">PR</f:facet>
  <h:outputText value="Yes" rendered="#{firmHasOwner.pr eq 1}"/>
  <h:outputText value="No" rendered="#{firmHasOwner.pr eq 0}"/>
  </h:column>
  <h:column>
 <f:facet name="header">Email</f:facet>
 #{firmHasOwner.owner.email}
 </h:column>
  </h:dataTable>
    </h:body>
</html>